package com.dashu.authority.servie;

import java.util.List;
import java.util.Map;
import java.util.Set;

import com.dashu.authority.entity.UserAndRole;
import com.dashu.authority.exception.AuthorityException;

public interface UserAndRoleService  extends BaseService<UserAndRole> {
	public List<UserAndRole> queryAllByUserId(Integer userId) throws AuthorityException;	
	public List<UserAndRole> queryAllByRoleId(Integer roleId) throws AuthorityException;	
	public Map<String, Object> saveAll(Integer userId,Integer[] roleIds) throws AuthorityException;
	
	public Set<Integer> querySuperiorRoleByUserId(Integer userId)throws AuthorityException;
}
